<!--
 * @Author: lizhen
 * @Date: 2021-11-22 19:36:22
 * @LastEditors: lizhen
 * @LastEditTime: 2021-12-31 14:53:38
 * @Description: 
-->
<template>
	<m-page-loading v-if="loading" />
	<web-view v-else :src="url"></web-view>
</template>
<script>
export default {
	data() {
		return {
			url: '',
			path: 'https://file.hospital.rnhos.com',
			loading: true,
		}
	},
	onShow() {
		this.loading = true
		console.log('onShow', this.loading)
		const pages = getCurrentPages()
		const currentPage = pages[pages.length - 1]
		const options = currentPage.options // type
		this.url = `${this.path}/protocol/beigene/${options.type}.html `
		setTimeout(() => {
			this.loading = false
		}, 1000)
	},
}
</script>
